Imports N = NHibernate.Search.Attributes

<N.Indexed(Index:="Test")> _
Public Class Test
    Private _ID As String
    Private _Body As String
    Private _Text As String
    Private _Title As String
    Private _Expires As Date

    <N.DocumentId()> _
    Public Overridable Property MyID() As String
        Get
            Return _ID
        End Get
        Set(ByVal value As String)
            _ID = value
        End Set
    End Property

    <N.Field(Search.Attributes.Index.Tokenized)> _
    Public Overridable Property Body() As String
        Get
            Return _Body
        End Get
        Set(ByVal value As String)
            _Body = value
        End Set
    End Property
    <N.Field(Search.Attributes.Index.Tokenized)> _
    Public Overridable Property Text() As String
        Get
            Return _Text
        End Get
        Set(ByVal value As String)
            _Text = value
        End Set
    End Property
    <N.Field(Search.Attributes.Index.Tokenized)> _
    Public Overridable Property Title() As String
        Get
            Return _Title
        End Get
        Set(ByVal value As String)
            _Title = value
        End Set
    End Property
    Public Overridable Property Expires() As Date
        Get
            Return _Expires
        End Get
        Set(ByVal value As Date)
            _Expires = value
        End Set
    End Property
End Class
